#include "Headers.h"
#include "Application.h"




CApplication::CApplication(void)
{
}


CApplication::~CApplication(void)
{
}

bool CApplication::Initiallize()
{
	InputManager()->Initialize();
	TimeManager()->Initialize();
	TimeManager()->Process();
	CAMERA()->Initiallize();

	if(m_SceneManager.LoadScene(SCHOOL_LOGO) == false)
		return false;

	return true;
}

void CApplication::Uninitialize()
{
	m_SceneManager.GetCurrentScene()->Uninitialize();
}

void CApplication::Process()
{
	InputManager()->UpdateKeyState();
	m_SceneManager.Process();
}

void CApplication::Render(HDC hdc)
{
	m_SceneManager.Render(hdc);
}
